<?php

require_once 'user/User.php';

class AccessControlManager
{
   protected static $instance = NULL;        
   public static function instance()
   {
       if(NULL == self::$instance)
	   {
	         self::$instance = new self();
	   }
	   
	   return self::$instance;
   }
         
   	protected function __construct()
	{
	   
	}
	
	/*
	*true or refuse reason.
	*/
	public function hasPrivilegeToUpload($user,$sourceFileInfoArray,$uploadInfoArray)
	{  
	   //todo	 
	   return true;
	}
}